<?php

class Grant extends CI_Model {
	
	function __construct()
	{
		parent::__construct();
	}

	function insertRecord($expectedtime,$maillist,$remark,$iplist,$isFinished,$submitter,$productName,$serviceName)
	{
		$record = array(
			'whitelistID'    => null,
			'expectedTime'   => $expectedtime,
			'mailList'       => $maillist,
			'remark'         => $remark,
			'ipList'         => $iplist,
			'isFinished'     => $isFinished,
			'submitter'      => $submitter,
			'productName'    => $productName,
			'serviceName'    => $serviceName
		);
		$this ->db -> insert('grantIP',$record);
	}
}

?>
